package com.itcoon.cloud.framework.mybatis.injector;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.metadata.TableInfo;
import com.baomidou.mybatisplus.extension.injector.methods.InsertBatchSomeColumn;
import com.github.yulichang.injector.MPJSqlInjector;
import com.itcoon.cloud.framework.mybatis.method.*;

import java.util.List;

public class BaseSqlInjector extends MPJSqlInjector {

    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass, TableInfo tableInfo) {
        List<AbstractMethod> methods = super.getMethodList(mapperClass, tableInfo);
        methods.add(new InsertBatchSomeColumn());
        methods.add(new GetRealById());
        methods.add(new ListRealByIds());
        methods.add(new RemoveRealById());
        methods.add(new RemoveRealByIds());
        methods.add(new ListReal());
        return methods;
    }

    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass) {
        List<AbstractMethod> methods = super.getMethodList(mapperClass);
        methods.add(new InsertBatchSomeColumn());
        methods.add(new GetRealById());
        methods.add(new ListRealByIds());
        methods.add(new RemoveRealById());
        methods.add(new RemoveRealByIds());
        methods.add(new ListReal());
        return methods;
    }


}
